//
//  ViewController.swift
//  MMShareServiceDemo
//
//  Created by 吴传荣 on 2021/5/28.
//

import UIKit
import MMShareService

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        ShareManager.manager.wx_register(appid: "", universalLink: "")
        
        
    }

    
    @IBAction func clickAction(_ sender: UIButton) {
        let image: Any = UIImage(named: "test") as Any
        let messageModel = ShareMessageModel(title: "网页分享", description: "很好的网Ω好分享", shareImage: image, webpageUrl: "https://www.baidu.com", shareKind: .web)
        ShareView.showShareView(scenes: [.WXSceneSession, .WXSceneTimeline, .WXSceneFavorite], messageModel: messageModel)
    }
    

}

